1 Options +FollowSymLinks
2 RewriteEngine
on
3 <ifModule mod_gzip.c>
4   mod_gzip_on Yes
5   mod_gzip_dechunk Yes
6   mod_gzip_item_include file .(html?|txt|css|js|php|pl|
var)$
7   mod_gzip_item_include handler ^cgi-script$
8   mod_gzip_item_include mime ^text/.*
9   mod_gzip_item_include mime ^application/x-javascript.*
10   mod_gzip_item_exclude mime ^image/.*
11   mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
12 </ifModule>
13 <IfModule mod_deflate.c>
14   <FilesMatch
".(css|js|x?html?|php)$">
15     SetOutputFilter DEFLATE
16   </FilesMatch>
17 </IfModule>
18 # END Compress text files
19 # BEGIN Expire headers
20 <IfModule mod_expires.c>
21   ExpiresActive On
22   ExpiresDefault
"access plus 1 seconds"
23   ExpiresByType image/x-icon
"access plus 2592000 seconds"
24   ExpiresByType image/jpeg
"access plus 2592000 seconds"
25   ExpiresByType image/png
"access plus 2592000 seconds"
26   ExpiresByType image/gif
"access plus 2592000 seconds"
27   ExpiresByType application/x-shockwave-flash
"access plus 2592000 seconds"
28   ExpiresByType text/css
"access plus 604800 seconds"
29   ExpiresByType text/javascript
"access plus 216000 seconds"
30   ExpiresByType application/javascript
"access plus 216000 seconds"
31   ExpiresByType application/x-javascript
"access plus 216000 seconds"
32   ExpiresByType text/html
"access plus 600 seconds"
33   ExpiresByType application/xhtml+xml
"access plus 600 seconds"
34 </IfModule>
35 # END Expire headers
36 # BEGIN Cache-Control Headers
37 <IfModule mod_headers.c>
38   <FilesMatch
".(ico|jpe?g|png|gif|swf)$">
39     Header
set Cache-Control "max-age=2592000, public"
40   </FilesMatch>
41   <FilesMatch
".(css)$">
42     Header
set Cache-Control "max-age=604800, public"
43   </FilesMatch>
44   <FilesMatch
".(js)$">
45     Header
set Cache-Control "max-age=216000, private"
46   </FilesMatch>
47   <FilesMatch
".(x?html?|php)$">
48     Header
set Cache-Control "max-age=600, private, must-revalidate"
49   </FilesMatch>
50 </IfModule>
51 # END Cache-Control Headers
52 # BEGIN Turn ETags Off
53 <IfModule mod_headers.c>
54   Header unset ETag
55 </IfModule>
56 FileETag None
57 # END Turn ETags Off
58 # BEGIN Remove Last-Modified Header
59 <IfModule mod_headers.c>
60   Header unset Last-Modified
61 </IfModule>
62 ErrorDocument
400 /erro.shtml
63 ErrorDocument
401 /erro.shtml
64 ErrorDocument
403 /erro.shtml
65 ErrorDocument
404 /erro.shtml
66 ErrorDocument
500 /erro.shtml
67 RewriteRule ^sitemap.txt$ map.php
68 RewriteRule ^giao-dien-web\.html$ index.php?home=template
69 RewriteRule ^giao-dien-web\.html&p=([
0-9]+)$ index.php?home=template&p=$1
70 RewriteRule ^pages/([
0-9]+)\.html$ index.php?p=$1
71 RewriteRule ^(.*)-ct-([
0-9]+)\.html$ index.php?home=category&name=$1&cat=$2
72 RewriteRule ^(.*)-ct-([
0-9]+)\.html&p=([0-9]+)$ index.php?home=category&name=$1&cat=$2&p=$3
73 RewriteRule ^(.*)-ct-([
0-9]+)\.html&city=([0-9]+)$ index.php?home=category&name=$1&cat=$2&city=$3
74 RewriteRule ^(.*)-ct-([
0-9]+)\.html&city=([0-9]+)&p=([0-9]+)$ index.php?home=category&name=$1&cat=$2&city=$3&p=$4
75
76 RewriteRule ^(.*)-ct-([
0-9]+)\.html&by=price&order=asc$ index.php?home=category&name=$1&cat=$2&by=price&order=asc
77 RewriteRule ^(.*)-ct-([
0-9]+)\.html&by=price&order=desc$ index.php?home=category&name=$1&cat=$2&by=price&order=desc
78 RewriteRule ^(.*)-ct-([
0-9]+)\.html&p=([0-9]+)&by=price&order=asc$ index.php?home=category&name=$1&cat=$2&p=$3&by=price&order=asc
79 RewriteRule ^(.*)-ct-([
0-9]+)\.html&p=([0-9]+)&by=price&order=desc$ index.php?home=category&name=$1&cat=$2&p=$3&by=price&order=desc
80
81 RewriteRule ^(.*)-pro-([
0-9]+)\.html$ index.php?home=products&name=$1&views=$2
82 RewriteRule ^(.*)-hangsx-([
0-9]+)\.html$ index.php?home=hangsx&name=$1&id=$2
83 RewriteRule ^(.*)-hangsx-([
0-9]+)\.html&p=([0-9]+)$ index.php?home=hangsx&name=$1&id=$2&p=$3
84 RewriteRule ^(.*)-hangsx-([
0-9]+)\.html&city=([0-9]+)$ index.php?home=hangsx&name=$1&id=$2&city=$3
85 RewriteRule ^(.*)-hangsx-([
0-9]+)\.html&city=([0-9]+)&p=([0-9]+)$ index.php?home=hangsx&name=$1&id=$2&city=$3&p=$4
86
87 RewriteRule ^(.*)-hangsx-([
0-9]+)\.html&by=price&order=asc$ index.php?home=hangsx&name=$1&id=$2&by=price&order=asc
88 RewriteRule ^(.*)-hangsx-([
0-9]+)\.html&by=price&order=desc$ index.php?home=hangsx&name=$1&id=$2&by=price&order=desc
89 RewriteRule ^(.*)-hangsx-([
0-9]+)\.html&p=([0-9]+)&by=price&order=asc$ index.php?home=hangsx&name=$1&id=$2&p=$3&by=price&order=asc
90 RewriteRule ^(.*)-hangsx-([
0-9]+)\.html&p=([0-9]+)&by=price&order=desc$ index.php?home=hangsx&name=$1&id=$2&p=$3&by=price&order=desc
91
92 RewriteRule ^news\.html$ index.php?home=news
93 RewriteRule ^news/(.*)-catn-([
0-9]+)\.html$ index.php?home=news&act=cat&name=$1&cat=$2
94 RewriteRule ^news/(.*)-catn-([
0-9]+)\.html&p=([0-9]+)$ index.php?home=news&act=cat&name=$1&cat=$2&p=$3
95 RewriteRule ^news/(.*)-vn-([
0-9]+)\.html$ index.php?home=news&act=views&name=$1&id=$2
96 RewriteRule ^gian-hang\.html$ index.php?home=store
97 RewriteRule ^gian-hang\.html&p=([
0-9]+)$ index.php?home=store&p=$1
98 RewriteRule ^gian-hang/(.*)-catn-([
0-9]+)\.html$ index.php?home=store&act=cat&name=$1&cat=$2
99 RewriteRule ^gian-hang/(.*)-catn-([
0-9]+)\.html&p=([0-9]+)$ index.php?home=store&act=cat&name=$1&cat=$2&p=$3
100 RewriteRule ^rao-vat\.html$ index.php?home=adv
101 RewriteRule ^rao-vat\.html&p=([
0-9]+)$ index.php?home=adv&p=$1
102 RewriteRule ^rao-vat/(.*)-catn-([
0-9]+)\.html$ index.php?home=adv&act=cat&name=$1&cat=$2
103 RewriteRule ^rao-vat/(.*)-catn-([
0-9]+)\.html&p=([0-9]+)$ index.php?home=adv&act=cat&name=$1&cat=$2&p=$3
104 RewriteRule ^rao-vat/(.*)-vn-([
0-9]+)\.html$ index.php?home=adv&act=views&name=$1&id=$2
105 RewriteRule ^tuyen-dung\.html$ index.php?home=job
106 RewriteRule ^tuyen-dung\.html&p=([
0-9]+)$ index.php?home=job&p=$1
107 RewriteRule ^tuyen-dung/(.*)-catn-([
0-9]+)\.html$ index.php?home=job&act=cat&name=$1&cat=$2
108 RewriteRule ^tuyen-dung/(.*)-catn-([
0-9]+)\.html&p=([0-9]+)$ index.php?home=job&act=cat&name=$1&cat=$2&p=$3
109 RewriteRule ^tuyen-dung/(.*)-vn-([
0-9]+)\.html$ index.php?home=job&act=views&name=$1&id=$2
110 RewriteRule ^danh-ba-doanh-nghiep\.html$ index.php?home=company
111 RewriteRule ^danh-ba-doanh-nghiep\.html&p=([
0-9]+)$ index.php?home=company&p=$1
112 RewriteRule ^danh-ba-doanh-nghiep/(.*)-catn-([
0-9]+)\.html$ index.php?home=company&act=cat&name=$1&cat=$2
113 RewriteRule ^danh-ba-doanh-nghiep/(.*)-catn-([
0-9]+)\.html&p=([0-9]+)$ index.php?home=company&act=cat&name=$1&cat=$2&p=$3
114 RewriteRule ^danh-ba-doanh-nghiep/(.*)-vn-([
0-9]+)\.html$ index.php?home=company&act=views&name=$1&id=$2
115 RewriteRule ^help$ index.php?home=help
116 RewriteRule ^help&p=([
0-9]+)$ index.php?home=help&p=$1
117 RewriteRule ^help/(.*)-cath-([
0-9]+)\.html$ index.php?home=help&act=cat&name=$1&cat=$2
118 RewriteRule ^help/(.*)-cath-([
0-9]+)\.html&p=([0-9]+)$ index.php?home=help&act=cat&name=$1&cat=$2&p=$3
119 RewriteRule ^help/(.*)-vh-([
0-9]+)-([0-9]+)\.html$ index.php?home=help&act=views&name=$1&views=$2&cat=$3
120 RewriteRule ^dang-ky-web\.html$ index.php?index=regestry
121 RewriteRule ^dang-ky-web-([
0-9]+)\.html$ index.php?index=regestryweb&id=$1
122 RewriteRule ^dich-vu/([a-zA-Z0-9_-]+)/([
0-9]+)/([0-9]+)\.html$ index.php?index=info&name=$1&id=$2&cat=$3
123 RewriteRule ^tinh-nang/([a-zA-Z0-9_-]+)/([
0-9]+)/([0-9]+)\.html$ index.php?index=info&name=$1&id=$2&cat=$3
124 RewriteRule ^san-pham/([a-zA-Z0-9_-]+)/([
0-9]+)/([0-9]+)\.html$ index.php?index=info&name=$1&id=$2&cat=$3
125 RewriteRule ^giao-dien/([
0-9]+)/([a-zA-Z0-9_-]+)\.html$ index.php?index=store&cat=$1&name=$2
126 RewriteRule ^([a-zA-Z0-9_-]+)$ gianhang.php?user=$
1
127 RewriteRule ^store\.aspx$ gianhang.php
128 RewriteRule ^([a-zA-Z0-9_-]+)/admin$ gianhang.php?user=$
1&quantri=admin
129 RewriteRule ^([a-zA-Z0-9_-]+)/category/([
0-9]+)\.html$ gianhang.php?user=$1&home=category&cat=$2
130 RewriteRule ^([a-zA-Z0-9_-]+)/category/([
0-9]+)/([a-zA-Z0-9_-]+)\.html$ gianhang.php?user=$1&home=category&cat=$2&name=$3
131 RewriteRule ^danh-muc/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)\.html$ index.php?home=category&cat=$
1&name=$2
132 RewriteRule ^([a-zA-Z0-9_-]+)/tin-tuc/news_all\.html$ gianhang.php?user=$
1&home=news_all
133 RewriteRule ^([a-zA-Z0-9_-]+)/tin-tuc/([
0-9]+)/([a-zA-Z0-9_-]+)\.html$ gianhang.php?user=$1&home=catnews&cat=$2&name=$3
134 RewriteRule ^([a-zA-Z0-9_-]+)/service/([
0-9]+)/([a-zA-Z0-9_-]+)\.html$ gianhang.php?user=$1&home=catservice&cat=$2&name=$3
135 RewriteRule ^([a-zA-Z0-9_-]+)/service/service_all\.html$ gianhang.php?user=$
1&home=service_all
136 RewriteRule ^tin-tuc/([
0-9]+)/([a-zA-Z0-9_-]+)\.html$ index.php?home=catnews&cat=$1&name=$2
137 RewriteRule ^tin-tuc/news_all\.html$ index.php?home=news_all
138 RewriteRule ^service/service_all\.html$ index.php?home=service_all
139 RewriteRule ^tin-tuc/([
0-9]+)/(.*)\.html&p=([0-9]+)$ index.php?home=catnews&cat=$1&name=$2&p=$3
140 RewriteRule ^service/([
0-9]+)/([a-zA-Z0-9_-]+)\.html$ index.php?home=catservice&cat=$1&name=$2
141 RewriteRule ^service/([
0-9]+)/([a-zA-Z0-9_-]+)\.html&p=([0-9]+)$ index.php?home=catservice&cat=$1&name=$2&p=$3
142 RewriteRule ^([a-zA-Z0-9_-]+)/products/([
0-9]+)/([0-9]+)/([a-zA-Z0-9_-]+)\.html$ gianhang.php?user=$1&home=product_view&p=$2&cat=$3&name=$4
143 RewriteRule ^products/([
0-9]+)/([0-9]+)/(.*)\.html$ index.php?home=product_view&p=$1&cat=$2&name=$3
144 RewriteRule ^([a-zA-Z0-9_-]+)/news-views/([
0-9]+)/([0-9]+)/([a-zA-Z0-9_-]+)\.html$ gianhang.php?user=$1&home=news_view&p=$2&cat=$3&name=$4
145 RewriteRule ^news-views/(.*)/(.*)/(.*)\.html$ index.php?home=news_view&p=$
1&cat=$2&name=$3
146 RewriteRule ^([a-zA-Z0-9_-]+)/service-views/([
0-9]+)/([0-9]+)/([a-zA-Z0-9_-]+)\.html$ gianhang.php?user=$1&home=service_view&p=$2&cat=$3&name=$4
147 RewriteRule ^service-views/(.*)/(.*)/(.*)\.html$ index.php?home=service_view&p=$
1&cat=$2&name=$3
148 RewriteRule ^([
0-9]+)/(.*)\.html$ index.php?home=module_menu&id=$1&name=$2
149 RewriteRule ^([a-zA-Z0-9_-]+)/([
0-9]+)/([a-zA-Z0-9_-]+)\.html$ gianhang.php?user=$1&home=module_menu&id=$2&name=$3
150 RewriteRule ^([a-zA-Z0-9_-]+)/mua-hang/([
0-9]+)\.html$ gianhang.php?user=$1&home=cart&p=$2
151 RewriteRule ^mua-hang/([
0-9]+)\.html$ index.php?home=cart&p=$1
152 RewriteRule ^([a-zA-Z0-9_-]+)/xoa-san-pham/([
0-9]+)\.html$ gianhang.php?user=$1&home=cart&act=del&pos=$2
153 RewriteRule ^xoa-san-pham/([
0-9]+)\.html$ index.php?home=cart&act=del&pos=$1
154 RewriteRule ^xoa-san-pham-([
0-9]+)\.html$ index.php?home=cart&act=del&pos=$1
155 RewriteRule ^([a-zA-Z0-9_-]+)/payment\.html$ gianhang.php?user=$
1&home=checkout
156 RewriteRule ^payment\.html$ index.php?home=checkout
157 RewriteRule ^([a-zA-Z0-9_-]+)/san-pham\.html$ gianhang.php?user=$
1&home=all_pro
158 RewriteRule ^san-pham\.html$ index.php?home=all_pro
159 RewriteRule ^([a-zA-Z0-9_-]+)/cart\.html$ gianhang.php?user=$
1&home=cart
160 RewriteRule ^cart\.html$ index.php?home=cart
161 RewriteRule ^cart\.html$ index.php?index=cart
162 RewriteRule ^gioi-thieu\.html$ index.php?home=about
163 RewriteRule ^ban-
do\.html$ index.php?home=map
164 RewriteRule ^hoi-dap\.html$ index.php?home=request
165 RewriteRule ^lien-he\.html$ index.php?home=contact
166 RewriteRule ^lien-he-us\.html$ index.php?index=contact
167 RewriteRule ^([a-zA-Z0-9_-]+)/gioi-thieu\.html$ gianhang.php?user=$
1&home=about
168 RewriteRule ^([a-zA-Z0-9_-]+)/ban-
do\.html$ gianhang.php?user=$1&home=map
169 RewriteRule ^([a-zA-Z0-9_-]+)/hoi-dap\.html$ gianhang.php?user=$
1&home=request
170 RewriteRule ^([a-zA-Z0-9_-]+)/lien-he\.html$ gianhang.php?user=$
1&home=contact
171 RewriteRule ^trang/([
0-9]+)\.html$ index.php?home=search&act&p=$1
172 RewriteRule ^([a-zA-Z0-9_-]+)/trang/([
0-9]+)\.html$ gianhang.php?user=$1&home=search&act&p=$2
173 RewriteRule ^category-([
0-9]+)/trang-([0-9]+)\.html$ index.php?home=category&cat=$1&p=$2
174 RewriteRule ^([a-zA-Z0-9_-]+)/category-([
0-9]+)/trang-([0-9]+)\.html$ gianhang.php?user=$1&home=category&cat=$2&p=$3
175 RewriteRule ^home/trang-([
0-9]+)\.html$ index.php?home=all_pro&p=$1
176 RewriteRule ^([a-zA-Z0-9_-]+)/home/trang-([
0-9]+)\.html$ gianhang.php?user=$1&home=all_pro&p=$2
177 RewriteRule ^Default\.aspx$ index.php
178 RewriteRule ^index\.html$ index.php



Full source code website bán hàng thương mại điện tử gần giống shopee 468.242 lượt xem

Gõ tìm kiếm nhanh...